/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * MainMenu.java
 *
 * Created on 21-nov-2011, 9:38:25
 */
package view;

import main.WinkelApplication;

/**
 *
 * @author Bryan
 */
public class MainMenu extends javax.swing.JPanel {

    /** Creates new form MainMenu */
    public MainMenu() {
        initComponents();
        WinkelApplication.mainWindow.setTitle("Main Menu");
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        btnCatalogue = new javax.swing.JButton();
        btnOrders = new javax.swing.JButton();
        btnCustomers = new javax.swing.JButton();
        btnStock = new javax.swing.JButton();

        setMaximumSize(new java.awt.Dimension(400, 300));
        setMinimumSize(new java.awt.Dimension(755, 480));
        setPreferredSize(new java.awt.Dimension(755, 480));

        btnCatalogue.setFont(new java.awt.Font("Tahoma", 0, 24));
        btnCatalogue.setIcon(new javax.swing.ImageIcon(getClass().getResource("/graphics/imgCatalog.png"))); // NOI18N
        btnCatalogue.setText("Catalogus");
        btnCatalogue.setMaximumSize(new java.awt.Dimension(150, 100));
        btnCatalogue.setMinimumSize(new java.awt.Dimension(356, 237));
        btnCatalogue.setName("btnCatalogue"); // NOI18N
        btnCatalogue.setPreferredSize(new java.awt.Dimension(361, 213));
        btnCatalogue.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCatalogueActionPerformed(evt);
            }
        });

        btnOrders.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
        btnOrders.setIcon(new javax.swing.ImageIcon(getClass().getResource("/graphics/imgOrderOverview.gif"))); // NOI18N
        btnOrders.setText("Orders");
        btnOrders.setMaximumSize(new java.awt.Dimension(150, 100));
        btnOrders.setMinimumSize(new java.awt.Dimension(356, 237));
        btnOrders.setName("btnOrders"); // NOI18N
        btnOrders.setPreferredSize(new java.awt.Dimension(361, 213));
        btnOrders.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnOrdersActionPerformed(evt);
            }
        });

        btnCustomers.setFont(new java.awt.Font("Tahoma", 0, 24));
        btnCustomers.setIcon(new javax.swing.ImageIcon(getClass().getResource("/graphics/imgCustomers.png"))); // NOI18N
        btnCustomers.setText("Klanten");
        btnCustomers.setMaximumSize(new java.awt.Dimension(150, 100));
        btnCustomers.setMinimumSize(new java.awt.Dimension(356, 237));
        btnCustomers.setName("btnCustomers"); // NOI18N
        btnCustomers.setPreferredSize(new java.awt.Dimension(361, 213));
        btnCustomers.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCustomersActionPerformed(evt);
            }
        });

        btnStock.setFont(new java.awt.Font("Tahoma", 0, 24));
        btnStock.setIcon(new javax.swing.ImageIcon(getClass().getResource("/graphics/imgProductManagement.png"))); // NOI18N
        btnStock.setText("Productbeheer");
        btnStock.setMaximumSize(new java.awt.Dimension(150, 100));
        btnStock.setMinimumSize(new java.awt.Dimension(356, 237));
        btnStock.setName("btnStock"); // NOI18N
        btnStock.setPreferredSize(new java.awt.Dimension(361, 213));
        btnStock.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnStockActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(btnCatalogue, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnCustomers, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(btnStock, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnOrders, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(17, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnCatalogue, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnCustomers, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnStock, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnOrders, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(37, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void btnCatalogueActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCatalogueActionPerformed
        WinkelApplication.getInstance().showPanel(new CategoryList(),795,480);
    }//GEN-LAST:event_btnCatalogueActionPerformed

    private void btnCustomersActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCustomersActionPerformed
        WinkelApplication.getInstance().showPanel(new CustomerOverview(false));
    }//GEN-LAST:event_btnCustomersActionPerformed

    private void btnStockActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnStockActionPerformed
        WinkelApplication.getInstance().showPanel(new ProductOverview(),1000,480);
    }//GEN-LAST:event_btnStockActionPerformed

private void btnOrdersActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnOrdersActionPerformed
       WinkelApplication.getInstance().showPanel(new Orders(true, -1));
}//GEN-LAST:event_btnOrdersActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnCatalogue;
    private javax.swing.JButton btnCustomers;
    private javax.swing.JButton btnOrders;
    private javax.swing.JButton btnStock;
    // End of variables declaration//GEN-END:variables
}
